<?php
/**
 * Created by JetBrains PhpStorm.
 * User: patch
 * Date: 07.12.12
 * Time: 2:16
 * To change this template use File | Settings | File Templates.
 */


function account_page() {
  $user = aia_user_load();


    $out = '';
    $out .= '<div class="span3">';
    $out .= '  <h3>'.$user->name.'</h3>';
    $scr =  isset($user->picture->uri) ? image_style_url('medium', $user->picture->uri) : '';
    $out .= '<img src="'.$scr.'"/>';
//    $out .= render(aia_user_avatar($user->uid));

    $out .= '  <table class="table table-condensed avatar">';
    $out .= '      <tr>';
    $out .= '          <td>'.t('Email:').'</td>';
    $out .= '          <td>'.$user->mail.'</td>';
    $out .= '      </tr>';
    $out .= '      <tr>';
    $out .= '          <td>'.t('Создан:').'</td>';
    $out .= '          <td>'.date('d.m.y', $user->created).'</td>';
    $out .= '      </tr>';
    $out .= '  </table>';
    $out .= '</div>';

  return $out;
}